var myVue = new Vue({
		el: "body",
		data: {
			info: "",
			name: "",
			sex: "",
			phone: "",
			newname:"",
			newphone:"",
			newsex:"男"
		},
		methods: {
			back: function() {
				location.href = "page4.html";
			},
			bianji: function() {
				$(".bianji").animate({
					left: "0px"
				}, 500);
				$(".big").css("display", "none");
				console.log(this.name);
				console.log(this);
			},
			okback: function() {
				$(".bianji").animate({
					left: "-100%"
				}, 500);
				$(".big").css("display", "block");
				if(this.newname!=""&&this.newphone!=""){
					this.info.attributes.name=this.newname;
					this.info.attributes.telephone=this.newphone;
					this.info.attributes.sex=this.newsex;
				}
			},
			topback: function() {
				$(".bianji").animate({
					left: "-100%"
				}, 500);
				$(".big").css("display", "block");
			},
			newsex:function(e){
				this.newsex=e;
			}
		},
		created: function() {
			init();
			//判断是否登录
			var curr = AV.User.current();
			if(curr) {
				console.log("欢迎" + curr.attributes.name + "的光临");
				//		myVue.myid = curr.id;
				console.log(curr);
				this.info = curr;
				console.log(this);
			} else {
				console.log("未登录");
			}
		}
	})
	//初始化
function init() {
	var vue = this;
	var APP_ID = 'Wx3JTgmqBaARoWCaGI96AM9h-gzGzoHsz';
	var APP_KEY = 'TrVpB16Og6Yac9u3BoiUy4hT';
	AV.init({
		appId: APP_ID,
		appKey: APP_KEY
	});
}

function getinfo() {

}